/*
	????:????,????PC???,?????PC???????	
		??PC???
		
	[2024-01-15] zoya
*/
#include <reg52.h>

typedef unsigned char u8;
typedef unsigned int u16;

#define GPIO_LED P1

void UsartInit()
{
	SCON=0x50;  // ??????1,????
	TMOD=0x20;  // ???T1????2
	TH1=TL1=0xFD;  // ???9600bps,???
	PCON=0x00;
	TR1=1;  // ????
}
void main()
{
	u8 tmp;
	UsartInit();
	while(1)
	{
		while(!RI);  // ????????
		RI=0;
		tmp=SBUF;
		GPIO_LED=tmp;
	}
}